package com.example.huawei.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.huawei.system.entity.CommentRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 15097789205
 * @description 针对表【comment_record】的数据库操作Mapper
 * @createDate 2025-06-27 09:50:04
 * @Entity com.example.huawei.system.entity.CommentRecord
 */
@Mapper
public interface CommentRecordMapper extends BaseMapper<CommentRecord> {

    IPage<CommentRecord> queryFirst(Page<CommentRecord> page, @Param("entity")  CommentRecord commentRecord);


    IPage<CommentRecord> querySecond(Page<CommentRecord> page, @Param("parentId") String parentId);


    List<CommentRecord> selectSecond(@Param("parentId") String parentId);
}




